﻿using System.Web.Mvc;
using Sharp.Platform.Mvc.Extensions;
using Sharp.Platform.Mvc.Route;

namespace Sharp.WebBooter.Areas.CMS
{
    /// <summary>
    /// 中控系统
    /// </summary>
    public class CMSAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "CMS";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapSaasRoute(
                "CMS_default",
                "CMS/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "Sharp.WebBooter.Areas.CMS.Controllers" }
            );
        }
    }
}